package com.mytrip.dto;

import java.util.List;

import com.mytrip.base.dto.BackendBaseDto;
import com.mytrip.util.MD5Support;

public class BackOperatorDto extends BackendBaseDto {

	/**
	 * 
	 */
	private static final long serialVersionUID = -4634700824417761294L;

	private Integer departmentId;

	private String realName;

	private String loginName;

	private Integer status;

	private String password;

	private String exactUserName;
	
	private List backOperatorIdList;
	
	private Long id;

    private Long creatorId;//创建者ID
    
    private Integer defaultAdminSiteId;
    
	public Long getCreatorId() {
		return creatorId;
	}

	public void setCreatorId(Long creatorId) {
		this.creatorId = creatorId;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getExactUserName() {
		return exactUserName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		if(password==null) {
			return;
		}
		this.password = password.trim();
	}
	
	public void setOriginalPassword(String password) {
		if(password==null||"".equals(password)) {
			this.password=null;
		} else {
			this.password = MD5Support.MD5(password);
		}
	}

	public void setExactUserName(String exactUserName) {
		this.exactUserName = exactUserName.trim();
	}

	public Integer getDepartmentId() {
		return departmentId;
	}

	public void setDepartmentId(Integer departmentId) {
		this.departmentId = departmentId;
	}

	public String getRealName() {
		return realName;
	}

	public void setRealName(String realName) {
		this.realName = realName.trim();
	}

	public String getLoginName() {
		return loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName.trim();
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public List getBackOperatorIdList() {
		return backOperatorIdList;
	}

	public void setBackOperatorIdList(List backOperatorIdList) {
		this.backOperatorIdList = backOperatorIdList;
	}

	public Integer getDefaultAdminSiteId(){
		return defaultAdminSiteId;
	}

	public void setDefaultAdminSiteId(Integer defaultAdminSiteId){
		this.defaultAdminSiteId = defaultAdminSiteId;
	}

}
